<template>
    <div class="gesc">
        <div class="left">
            <header>
                <h2>国风中文网</h2>
                <a class="more" href="">更多>>></a>
            </header>
            <div class="m-book-four">
                <div class="contents">
                    <ul class="book f-cb" >
                        <li :class="bookclass[index]" v-for="(item,index) in GuofengList" :key="item.index">
                            <div class="m-book-info f-cb">
                                <a class="cover" href="">
                                    <img :src='item.imgurl' alt="">
                                </a>
                                <h3>{{item.name}}</h3>
                                <p>{{item.host}}</p>
                                <p class='disc eps'>{{item.message}}</p>
                                <a class="read" href="">立即阅读>>></a>
                            </div>
                        </li>
                    </ul>
                </div> 
            </div>
        </div>
        <div class="right">
            <header>
                <h2>国风中文网畅销榜</h2>
            </header>
            <div class="m-foldlist">
                <ul v-for="(paih,index) in PaihangList" :key="paih.index">
                    <li>
                        <p class="fold" v-show="xianshi[index]"  @mouseenter="enters(index)">
                            <a href="">
                                <i>{{'0'+(index +1)}}</i>{{paih.name}}                             </a>
                        </p>
                        <div class="unfold" v-show="!xianshi[index]" >
                            <i>{{'0'+(index +1)}}</i>
                            <div class="border f-cb">
                                <a href="" class="img">
                                    <img :src='paih.imgurl' alt="">
                                </a>
                                <h3>
                                    <a href="">{{paih.name}}{{xianshi[index]}}</a>
                                </h3>
                                <p>{{paih.host}}</p>
                            </div>
                        </div>
                    </li>
                    
                </ul>
                <a class='more' href="">
                    <i class="el-icon-right"></i>查看更多
                </a>
            </div>

        </div>
    </div>
</template>
<script>
export default {
    data(){
        return {
           
        }
    },
    methods:{
        enters(index) {
          console.log('aaaa')
           for(let index in this.xianshi){
             this.xianshi[index] = true
          }
            this.xianshi[index] = false;  
          
          let newArr = Object.assign([], this.xianshi);
      this.xianshi = newArr;
        },

    },
}
</script>
